import React from 'react';
import PropTypes from 'prop-types';
class VoteMain extends React.Component {
	static contextTypes = {
		supNum: PropTypes.number,
		oppNum: PropTypes.number
	};
	render() {
		let { supNum, oppNum } = this.context;
		return <main>
			<p>支持人数：{supNum}</p>
			<p>反对人数：{oppNum}</p>
		</main>;
	}
}
export default VoteMain;